package com.wbcs.config.component.application.report.extendconfig;

import com.wbcs.config.component.application.report.AbsConfigBean;
import com.wbcs.exception.WbcsConfigLoadingException;

/**
 * ？
 */
public class AbsExtendConfigBean implements Cloneable
{
    private AbsConfigBean owner;

    public AbsExtendConfigBean(AbsConfigBean owner)
    {
        this.owner=owner;
    }

    public AbsConfigBean getOwner()
    {
        return owner;
    }

    public void setOwner(AbsConfigBean owner)
    {
        this.owner=owner;
    }

    @Override
	protected Object clone() throws CloneNotSupportedException
    {
        return super.clone();
    }

    public AbsExtendConfigBean clone(AbsConfigBean owner)
    {
        AbsExtendConfigBean bean=null;
        try
        {
            bean=(AbsExtendConfigBean)clone();
            bean.setOwner(owner);
        }catch(CloneNotSupportedException e)
        {
            throw new WbcsConfigLoadingException("加载报表配置文件失败",e);
        }
        return bean;
    }
}
